#define _CRT_SECURE_NO_WARNINGS
#include"RBTree.h"

void test1()
{
	RBTree<int, int> rb1;
	RBTree<int, int> rb2;

	int a[] = { 16,3,7,11,9,26,18,14,15 };
	int b[] = { 4,2,6,1,3,5,15,7,16,14 };
	for (auto e : a)
	{
		rb1.Insert({ e,e });
	}
	for (auto e : b)
	{
		rb2.Insert({ e,e });
	}

	rb1.InOrder();
	cout << rb1.IsBalance() << endl;

	rb2.InOrder();
	cout << rb2.IsBalance() << endl;
}
int main()
{
	test1();

	return 0;
}